package com.yvan.metric;

/**
 * Created by Blues Zhao on 下午7:22 2018/8/15.
 */
public interface Consts {

    /**
     * Redis 耗时直方图
     * 10ms
     * 20ms
     * 200ms
     * 700ms
     * 1s
     * 30s
     * 60s
     */
    long[] RDS_COST_HISTOGRAM = new long[]{10, 30, 200, 700, 1000, 30 * 1000, 60 * 1000};

    /**
     * Redis 结果大小
     * 0.2K
     * 1K
     * 5K
     * 30K
     * 500K
     * 3M
     * 10M
     */
    long[] RDS_RES_HISTOGRAM = new long[]{205, 1024, 5 * 1024, 30 * 1024, 500 * 1024, 3 * 1024 * 1024, 10 * 1024 * 1024};

    /**
     * ES耗时 直方图
     * 10ms
     * 20ms
     * 200ms
     * 700ms
     * 1s
     * 30s
     * 60s
     */
    long[] ES_COST_HISTOGRAM = new long[]{10, 30, 200, 700, 1000, 30 * 1000, 60 * 1000};

    /**
     * ES 请求body大小
     * 0.2K
     * 1K
     * 5K
     * 30K
     * 500K
     * 3M
     * 10M
     */
    long[] ES_REQ_HISTOGRAM = new long[]{205, 1024, 5 * 1024, 30 * 1024, 500 * 1024, 3 * 1024 * 1024, 10 * 1024 * 1024};

    /**
     * ES 结果body大小
     * 0.2K
     * 1K
     * 5K
     * 30K
     * 500K
     * 3M
     * 10M
     */
    long[] ES_RES_HISTOGRAM = new long[]{205, 1024, 5 * 1024, 30 * 1024, 500 * 1024, 3 * 1024 * 1024, 10 * 1024 * 1024};

    /**
     * HTTP 耗时 直方图
     * 10ms
     * 20ms
     * 200ms
     * 700ms
     * 1s
     * 30s
     * 60s
     */
    long[] HTTP_COST_HISTOGRAM = new long[]{10, 30, 200, 700, 1000, 30 * 1000, 60 * 1000};

    /**
     * JDBC 事务执行时间
     */
    long[] TXN_HISTOGRAM = new long[]{10, 30, 200, 700, 1000, 30 * 1000, 60 * 1000};

    /**
     * JDBC 事务挂起时间
     */
    long[] TXH_HISTOGRAM = new long[]{10, 30, 200, 700, 1000, 30 * 1000, 60 * 1000};

    /**
     * JDBC 活动连接时间
     */
    long[] JDBC_CONNECT_ALIVED = new long[]{10, 30, 200, 700, 1000, 30 * 1000, 60 * 1000};

    /**
     * JDBC 执行时间
     * 10ms
     * 20ms
     * 200ms
     * 700ms
     * 1s
     * 30s
     * 60s
     */
    long[] JDBC_STMT_TIME = new long[]{10, 30, 200, 700, 1000, 30 * 1000, 60 * 1000};

    /**
     * JDBC 填充行数
     * 2
     * 10
     * 50
     * 200
     * 1000
     * 3000
     * 10000
     */
    long[] JDBC_FETCH_ROW = new long[]{2, 10, 50, 200, 1000, 3000, 10000};


    /**
     * JDBC 更新行数
     * 2
     * 10
     * 50
     * 200
     * 1000
     * 3000
     * 10000
     */
    long[] JDBC_UPDATE_COUNT = new long[]{2, 10, 50, 200, 1000, 3000, 10000};
}

